package com.sheep.jucdemo.part2.part2_11;

/**
 * @Date 2022/4/13 23:12
 * @Created by sheep
 */
public class Test2_11_2 {
    static final int LINE_NUM = 1024;
    static final int COLUM_NUM = 1024;

    public static void main(String[] args) {

        long[][] array = new long[LINE_NUM][COLUM_NUM];

        long startTime = System.currentTimeMillis();
        for (int i = 0; i < COLUM_NUM; ++i) {
            for (int j = 0; j < LINE_NUM; ++j) {
                array[i][j] = i*2+j;
            }
        }

        long endTime = System.currentTimeMillis();
        System.out.println("no cache time:" + (endTime-startTime));
    }
}
